//
//  UIView+FrameSetter.m
//  断点续传-01
//
//  Created by user on 15/11/9.
//  Copyright © 2015年 heima. All rights reserved.
//

#import "UIView+FrameSetter.h"

@implementation UIView (FrameSetter)

- (void)setViewX:(CGFloat)ViewX{
    CGRect frame = self.frame;
    frame.origin.x = ViewX;
    self.frame = frame;
}
- (CGFloat)ViewX{
    return self.frame.origin.x;
}

- (void)setViewY:(CGFloat)ViewY{
    CGRect frame = self.frame;
    frame.origin.y = ViewY;
    self.frame = frame;
}
- (CGFloat)ViewY{
    return self.frame.origin.y;
}

- (void)setViewW:(CGFloat)ViewW{
    CGRect frame = self.frame;
    frame.size.width = ViewW;
    self.frame = frame;
}
- (CGFloat)ViewW{
    return self.frame.size.width;
}

- (void)setViewH:(CGFloat)ViewH{
    CGRect frame = self.frame;
    frame.size.height = ViewH;
    self.frame = frame;
}
- (CGFloat)ViewH{
    return self.frame.size.height;
}

@end
